

#ifndef INTERRUPT_H
#define INTERRUPT_H

#include <stdint.h>
#include "ddl.h"

#define DDL_IRQ_LEVEL_DEFAULT                   3u

extern unsigned char task_1ms_flg;

/* 优先级定义 */
typedef enum en_irq_level
{
    IrqLevel0  = 0u,               ///< 优先级0
    IrqLevel1  = 1u,               ///< 优先级1
    IrqLevel2  = 2u,               ///< 优先级2
    IrqLevel3  = 3u,               ///< 优先级3
} en_irq_level_t; 


extern void EnableNvic(IRQn_Type enIrq, en_irq_level_t enLevel, boolean_t bEn);

#endif // INTERRUPT_H

